-- GENERATED SPELL FOR [Illidari Fearbringer] --


function spell0_22954(pUnit, Event) --@Illidari Flames,n/a--
pUnit:FullCastSpellOnTarget(40938,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22954', 5000, 1)
end

function spell1_22954(pUnit, Event) --@Rain of Chaos,n/a--
pUnit:FullCastSpellOnTarget(40946,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22954', 9000, 1)
end

function spell2_22954(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(40936,pUnit)
pUnit:RegisterEvent('Sorts_22954', 3341, 1)
end

function Sorts_22954(pUnit, Event)
local choix_sorts_22954 = math.random(0, 2)
if choix_sorts_22954 == 0 then
pUnit:RegisterEvent('spell0_22954', 1, 1)
end
if choix_sorts_22954 == 1 then
pUnit:RegisterEvent('spell1_22954', 1, 1)
end
if choix_sorts_22954 == 2 then
pUnit:RegisterEvent('spell2_22954', 1, 1)
end
end

function mob22954_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22954', math.random(1500, 3000), 1)
end

function mob22954_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22954_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22954_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22954, 1, 'mob22954_Action')
RegisterUnitEvent(22954, 2, 'mob22954_Leave')
RegisterUnitEvent(22954, 3, 'mob22954_Kill')
RegisterUnitEvent(22954, 4, 'mob22954_Die')
